package com.yyh.synctool.server.rmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 价格任务 的 消费者
 *
 * @author xuan
 * @date 2021/12/17
 */
@Component
@RabbitListener(queues = "price")
public class ConsumerForPrice
{
    @RabbitHandler
    public void process(String value) {
        System.out.println("price task: "+value);

    }
}
